package com.dsg.service.Impl;

import com.dsg.entity.Dev;
import com.dsg.entity.Devstatus;
import com.dsg.mappers.DevMapper;
import com.dsg.service.DevService;
import com.dsg.vo.DevDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("devService")
public class DevServiceImpl implements DevService {
    @Resource
    private DevMapper devMapper;
    @Override
    public List<Dev> seachAll(DevDto devDto) {
        return devMapper.findAll(devDto);
    }

    @Override
    public int add(Dev dev) {
        return devMapper.add(dev);
    }

    @Override
    public int update(Dev dev) {
        return devMapper.update(dev);
    }

    @Override
    public void batchDel(Integer[] ids) {
        devMapper.batchDel(ids);
    }

    @Override
    public List<Devstatus> seachAll() {
        return devMapper.findStatusAll();
    }
}
